<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JQuery01</title>
<script type="text/javascript" src="../js/jquery-3.1.1.js"></script>
<script type="text/javascript">
	
/* 	function getContent() {
		var content = document.getElementById("content").value;
		alert(content);
	}
 */
 
 	function getContent(){
		var content=$("#content").val();
		alert(content);
	}
 
</script>
</head>
<body>

<input type="text" id="content"/>&nbsp;&nbsp;<input type="button" value="我的内容" onclick="getContent()"/>

</body>
</html>